<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {


    $router->get('/index', 'DashboardController@index');
    $router->resource('/users', 'UserController');//用户管理
    $router->resource('/mp', 'MpController');//小程序管理
//    $router->resource('/order', 'OrderController');//订单
    $router->resource('/episodes', 'EpisodeController');//剧集
    $router->resource('/video', 'VideoController');//视频
    $router->resource('/videotype', 'TypeController');//视频类型管理
    $router->resource('/checkins', 'CheckinController');//签到管理
    $router->resource('/tasks', 'TaskController');//任务管理
    $router->resource('/tasklog', 'TaskLogController');//任务记录
    $router->resource('/recharges', 'RechargeController');//充值产品列表
    $router->resource('/rechargeslist', 'OrderController');//充值记录
    $router->resource('/tags', 'TagController');//标签
    $router->resource('/consume', 'ConsumeController');//标签
    $router->resource('/carousel', 'CarouselController');//标签
    $router->resource('/metric-cards', 'CarouselController');//标签
    $router->resource('/usercount', 'StatController');//统计
    $router->resource('/dep/list', 'DepartmentController');//部门管理
    $router->resource('/kefu/list', 'CustomerController');//客户管理
    $router->resource('/mykefu', 'MyCustomerController');//我的客户
    $router->resource('/pro/list', 'ProjectController');//项目管理
    $router->resource('/contract/list', 'ContractController');//合同管理
    $router->resource('/source', 'ProSourceController');//项目来源管理
    $router->resource('/adminuser', 'AdminUserController');
    $router->resource('/userrole', 'UserRoleController');//用户角色
    $router->resource('/cardtype', 'CardTypeController');//卡类型管理
    $router->resource('/usercard', 'UserCardController');//绑卡记录
    $router->resource('/cardnums', 'CardNumController');//卡密列表
    $router->resource('/acting/source', 'ActingController');//代理源
    $router->resource('/pro/list', 'ApiproController');//项目管理
    $router->post('/im/send', 'WukongimController@send');
    $router->any('/im/getchannel_id', 'WukongimController@getChannel');
    $router->any('/im/addsubscribers', 'WukongimController@reg');


});
